package model

import "time"

type UrlMapReplaceRecord struct {
	ID         int64     `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	URLMapID   int64     `gorm:"column:url_map_id" json:"url_map_id"` // 注意：原字段是 numeric，建议改为 bigint
	OldLongURL string    `gorm:"column:old_long_url" json:"old_long_url"`
	NewLongURL string    `gorm:"column:new_long_url" json:"new_long_url"`
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	EditTime   time.Time `gorm:"column:edit_time" json:"edit_time"`
	Creator    string    `gorm:"column:creator" json:"creator"`
	Editor     string    `gorm:"column:editor" json:"editor"`
	Deleted    int16     `gorm:"column:deleted" json:"deleted"`
	Version    int64     `gorm:"column:version" json:"version"`
}

func (UrlMapReplaceRecord) TableName() string {
	return "url_map_replace_record"
}
